package com.sjtu.dao.repository;

import com.sjtu.dao.model.TaskInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * nerine
 * 1/28/2020
 */
public interface TaskInfoRepository extends JpaRepository<TaskInfo, String> {
    @Query("from task_info where id_client_info = ?1 and is_enable = 'YES'")
    List<TaskInfo> findByClientInfo(String idClientInfo);
}
